from random import randint


winnumbers = []
for i in range(8):
    winnumbers.append(randint(1, 33))

usernumbers = []
for i in range(8):
    num = int(input(f"请输入第 {i+1} 个数字（1-33）："))
    usernumbers.append(num)

errors = 0
for i in range(8):
    if usernumbers[i] != winnumbers[i]:
        errors += 1

if errors == 0:
    print("恭喜你，获得一等奖！")
elif errors == 1:
    print("恭喜你，获得二等奖！")
elif errors == 2:
    print("恭喜你，获得三等奖！")
elif errors == 3:
    print("恭喜你，获得四等奖！")
else:
    print("很遗憾，未中奖。")

print("中奖号码是：", winnumbers)
